// 2010-03-03 - M. Caputo

#ifndef CPOLYGON_H
#define CPOLYGON_H

#include <QColor>
#include <QVector>

#include "CVertex.h"

class CPolygon
{

public:
	CPolygon();
	CPolygon(const QColor & color);
	
	void addVertex(const CVertex & v);
	int verticesCount();
	const CVertex & vertex(int i);
	
	bool hasColor();
	const QColor & color();

private:
	QColor objectColor;
	bool colored;
	QVector<CVertex> vertices;
};

#endif
